package persistence;

import java.util.List;

import persistence.exception.DAOException;

public interface RoleDAO {
	Role find(int id) throws DAOException;
	List<Role> findAllByName(String roleName) throws DAOException;
	List<Role> findAll() throws DAOException;
	List<Role> findAllRolesForUser(int userId) throws DAOException;
	void update(Role role) throws DAOException;
	Role create(int id, String name) throws DAOException;
}
